<?php
/**
 * Created by PhpStorm.
 * User: Cao
 * Date: 09/10/2014
 * Time: 09:53
 */
class FistController extends CI_Controller
{
    public function __construct(){
        parent::__construct();
        $this->load->helper("url");
        $this->load->model('index_model');
    }
    public function index(){
        $data['path'] = "list_product";
        $data['cate_parent'] = $this->index_model->list_cate_parent();
        $data['cate_child'] = $this->index_model->list_cate_child();
        $this->load->view("index",$data);
    }
}